package com.tomdayu.mybatisdemo.demo1.mapper;

import com.tomdayu.mybatisdemo.demo1.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.reflection.ParamNameResolver;
import org.apache.ibatis.session.Configuration;

import java.util.List;

@Mapper //声明了该类是一个映射接口
public interface UserMapper {

    List<User> queryUserBySchoolName(User user);
    List<User> queryUserBySchoolName2(@Param("name") String name);

    List<User> queryUserBySchoolName1(int id, String name, @Param("emailAddress")String email, int age, String schoolName);
}
